﻿using System;
using UnityEngine;

namespace RootMotion
{
	// Token: 0x020001DF RID: 479
	public class TriggerEventBroadcaster : MonoBehaviour
	{
		// Token: 0x06000A0D RID: 2573 RVA: 0x00036502 File Offset: 0x00034902
		private void OnTriggerEnter(Collider collider)
		{
			if (this.target != null)
			{
				this.target.SendMessage("OnTriggerEnter", collider, SendMessageOptions.DontRequireReceiver);
			}
		}

		// Token: 0x06000A0E RID: 2574 RVA: 0x00036527 File Offset: 0x00034927
		private void OnTriggerStay(Collider collider)
		{
			if (this.target != null)
			{
				this.target.SendMessage("OnTriggerStay", collider, SendMessageOptions.DontRequireReceiver);
			}
		}

		// Token: 0x06000A0F RID: 2575 RVA: 0x0003654C File Offset: 0x0003494C
		private void OnTriggerExit(Collider collider)
		{
			if (this.target != null)
			{
				this.target.SendMessage("OnTriggerExit", collider, SendMessageOptions.DontRequireReceiver);
			}
		}

		// Token: 0x040006A0 RID: 1696
		public GameObject target;
	}
}
